(() => {
    "use strict";
    var e = {
        8880 : function(e, t, n) {
            e.exports = n.p + "static/sha3_wasm_bg.7b9ca65ddd.wasm"
        },
        91884 : function(e, t, n) {
            let r;
            n("98544"),
            n("20923"),
            n("37973"),
            n("74948"),
            n("54675"),
            n("14090"),
            n("62915"),
            n("88491"),
            n("90884");
            let o = 0,
            i = null;
            function a() {
                return (null === i || 0 === i.byteLength) && (i = new Uint8Array(r.memory.buffer)),
                i
            }
            let c = "undefined" != typeof TextEncoder ? new TextEncoder("utf-8") : {
                encode: () => {
                    throw Error("TextEncoder not available")
                }
            },
            u = "function" == typeof c.encodeInto ?
            function(e, t) {
                return c.encodeInto(e, t)
            }: function(e, t) {
                let n = c.encode(e);
                return t.set(n),
                {
                    read: e.length,
                    written: n.length
                }
            };
            function f(e, t, n) {
                if (void 0 === n) {
                    let n = c.encode(e),
                    r = t(n.length, 1) >>> 0;
                    return a().subarray(r, r + n.length).set(n),
                    o = n.length,
                    r
                }
                let r = e.length,
                i = t(r, 1) >>> 0,
                f = a(),
                s = 0;
                for (; s < r; s++) {
                    let t = e.charCodeAt(s);
                    if (t > 127) break;
                    f[i + s] = t
                }
                if (s !== r) {
                    0 !== s && (e = e.slice(s)),
                    i = n(i, r, r = s + 3 * e.length, 1) >>> 0;
                    let t = u(e, a().subarray(i + s, i + r));
                    s += t.written,
                    i = n(i, r, s, 1) >>> 0
                }
                return o = s,
                i
            }
            let s = null;
            function l() {
                return (null === s || !0 === s.buffer.detached || void 0 === s.buffer.detached && s.buffer !== r.memory.buffer) && (s = new DataView(r.memory.buffer)),
                s
            }
            let d = "undefined" != typeof TextDecoder ? new TextDecoder("utf-8", {
                ignoreBOM: !0,
                fatal: !0
            }) : {
                decode: () => {
                    throw Error("TextDecoder not available")
                }
            };
            "undefined" != typeof TextDecoder && d.decode();
            async function p(e, t) {
                if ("function" == typeof Response && e instanceof Response) {
                    if ("function" == typeof WebAssembly.instantiateStreaming) try {
                        return await WebAssembly.instantiateStreaming(e, t)
                    } catch(t) {
                        if ("application/wasm" != e.headers.get("Content-Type")) console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", t);
                        else throw t
                    }
                    let n = await e.arrayBuffer();
                    return await WebAssembly.instantiate(n, t)
                } {
                    let n = await WebAssembly.instantiate(e, t);
                    return n instanceof WebAssembly.Instance ? {
                        instance: n,
                        module: e
                    }: n
                }
            }
            async function b(e) {
                var t, o, a, c;
                if (void 0 !== r) return r;
                void 0 !== e && (Object.getPrototypeOf(e) === Object.prototype ? {
                    module_or_path: e
                } = e: console.warn("using deprecated parameters for the initialization function; pass a single object instead")),
                void 0 === e && (e = new URL(n(8880), n.b));
                let u = function() {
                    let e = {};
                    return e.wbg = {},
                    e
                } (); ("string" == typeof e || "function" == typeof Request && e instanceof Request || "function" == typeof URL && e instanceof URL) && (e = fetch(e)),
                t = 0;
                let {
                    instance: f,
                    module: l
                } = await p(await e, u);
                return a = f,
                c = l,
                r = a.exports,
                b.__wbindgen_wasm_module = c,
                s = null,
                i = null,
                r
            }
            new URL(n(8880), n.b);
            let y = b(),
            w = (e, t, n, i, a) => {
                if ("DeepSeekHashV1" !== e) throw Error("Unsupported algorithm: " + e);
                let c = "".concat(n, "_").concat(a, "_"),
                u = function(e, t, n) {
                    try {
                        let c = r.__wbindgen_add_to_stack_pointer( - 16),
                        u = f(e, r.__wbindgen_export_0, r.__wbindgen_export_1),
                        s = o,
                        d = f(t, r.__wbindgen_export_0, r.__wbindgen_export_1),
                        p = o;
                        r.wasm_solve(c, u, s, d, p, n);
                        var i = l().getInt32(c + 0, !0),
                        a = l().getFloat64(c + 8, !0);
                        return 0 === i ? void 0 : a
                    } finally {
                        r.__wbindgen_add_to_stack_pointer(16)
                    }
                } (t, c, i);
                if (!u) throw Error("No solution found: " + "algorithm: ".concat(e, ", ") + "challenge: ".concat(t, ", ") + "difficulty: ".concat(i, ", ") + "prefix: ".concat(c));
                return u
            };
            onmessage = e => {
                if ("pow-challenge" !== e.data.type) return;
                let {
                    algorithm: t,
                    challenge: n,
                    salt: r,
                    difficulty: o,
                    signature: i,
                    expireAt: a
                } = e.data.challenge;
                y.then(() => {
                    let e = w(t, n, r, o, a);
                    postMessage({
                        type: "pow-answer",
                        answer: {
                            algorithm: t,
                            challenge: n,
                            salt: r,
                            answer: e,
                            signature: i
                        }
                    })
                }).
                catch(e => {
                    postMessage({
                        type: "pow-error",
                        error: e
                    })
                })
            }
        }
    },
    t = {};
    function n(r) {
        var o = t[r];
        if (void 0 !== o) return o.exports;
        var i = t[r] = {
            exports: {}
        };
        return e[r].call(i.exports, i, i.exports, n),
        i.exports
    }
    n.m = e,
    n.x = () => {
        var e = n.O(void 0, ["694"],
        function() {
            return n("91884")
        });
        return e = n.O(e)
    },
    n.n = function(e) {
        var t = e && e.__esModule ?
        function() {
            return e.
        default
        }:
        function() {
            return e
        };
        return n.d(t, {
            a: t
        }),
        t
    },
    n.d = function(e, t) {
        for (var r in t) n.o(t, r) && !n.o(e, r) && Object.defineProperty(e, r, {
            enumerable: !0,
            get: t[r]
        })
    },
    n.f = {},
    n.e = function(e) {
        return Promise.all(Object.keys(n.f).reduce(function(t, r) {
            return n.f[r](e, t),
            t
        },
        []))
    },
    n.u = function(e) {
        return "static/default-vendors.51fc8dfd75.js"
    },
    n.g = function() {
        if ("object" == typeof globalThis) return globalThis;
        try {
            return this || Function("return this")()
        } catch(e) {
            if ("object" == typeof window) return window
        }
    } (),
    n.o = function(e, t) {
        return Object.prototype.hasOwnProperty.call(e, t)
    },
    n.r = function(e) {
        "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
            value: "Module"
        }),
        Object.defineProperty(e, "__esModule", {
            value: !0
        })
    },
    (() => {
        var e = [];
        n.O = function(t, r, o, i) {
            if (r) {
                i = i || 0;
                for (var a = e.length; a > 0 && e[a - 1][2] > i; a--) e[a] = e[a - 1];
                e[a] = [r, o, i];
                return
            }
            for (var c = 1 / 0,
            a = 0; a < e.length; a++) {
                for (var r = e[a][0], o = e[a][1], i = e[a][2], u = !0, f = 0; f < r.length; f++)(!1 & i || c >= i) && Object.keys(n.O).every(function(e) {
                    return n.O[e](r[f])
                }) ? r.splice(f--, 1) : (u = !1, i < c && (c = i));
                if (u) {
                    e.splice(a--, 1);
                    var s = o();
                    void 0 !== s && (t = s)
                }
            }
            return t
        }
    })(),
    n.p = "/",
    n.rv = function() {
        return "1.1.8"
    },
    n.j = "282",
    (() => {
        var e = n.x;
        n.x = function() {
            return n.e("694").then(e)
        }
    })(),
    (() => {
        n.b = self.location + "/../../";
        var e = {
            282 : 1
        };
        n.f.i = function(t, r) { ! e[t] && importScripts(n.p + n.u(t))
        };
        var t = self.webpackChunk_deepseek_chat = self.webpackChunk_deepseek_chat || [],
        r = t.push.bind(t);
        t.push = function(t) {
            var o = t[0],
            i = t[1],
            a = t[2];
            for (var c in i) n.o(i, c) && (n.m[c] = i[c]);
            for (a && a(n); o.length;) e[o.pop()] = 1;
            r(t)
        }
    })(),
    n.ruid = "bundler=rspack@1.1.8",
    n.x()
})();